<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="MvcContrib.FluentHtml.ModelViewPage<IEnumerable<Universum.Model.Domain.Feedbacks.Feedback>>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Feedbacks
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Feedbacks</h2>

    <table>
        <tr>
            <th></th>
            <th>
                Comment
            </th>
            <th>
                SummitedBy
            </th>
            
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
               <% using( Html.BeginForm<FeedbackController>(it=>it.RemoveFeedback(item.ID))){ %>
               <%=this.SubmitButton("Remove") %>
               <%} %>
            </td>
            <td>
                <%= item.Comment %>
            </td>
            <td>
                <%= Html.Encode(item.SummitedBy) %>
            </td>
            
        </tr>
    
    <% } %>

    </table>
  
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptPlaceHolder" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="Breadcrumbs" runat="server">
<%=Html.Breadcrumb().Home().AppendText("Feedback").End() %>
</asp:Content>

